package com.tangsm.spring.boot.fluent.mybatis.entity;

import cn.org.atool.fluent.mybatis.annotation.FluentMybatis;
import cn.org.atool.fluent.mybatis.annotation.TableField;
import cn.org.atool.fluent.mybatis.annotation.TableId;
import cn.org.atool.fluent.mybatis.base.RichEntity;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * PostEntity: 数据映射实体定义
 *
 * @author Powered By Fluent Mybatis
 */
@SuppressWarnings({"rawtypes", "unchecked"})
@Data
@Accessors(
    chain = true
)
@EqualsAndHashCode(
    callSuper = false
)
@AllArgsConstructor
@NoArgsConstructor
@FluentMybatis(
    table = "sys_post",
    schema = "nft_admin",
    desc = "岗位信息表"
)
public class PostEntity extends RichEntity {
  private static final long serialVersionUID = 1L;

  @TableId(
      value = "post_id",
      desc = "岗位ID"
  )
  private Long postId;

  @TableField(
      value = "create_by",
      desc = "创建者"
  )
  private String createBy;

  @TableField(
      value = "create_time",
      desc = "创建时间"
  )
  private Date createTime;

  @TableField(
      value = "post_code",
      desc = "岗位编码"
  )
  private String postCode;

  @TableField(
      value = "post_name",
      desc = "岗位名称"
  )
  private String postName;

  @TableField(
      value = "post_sort",
      desc = "显示顺序"
  )
  private Integer postSort;

  @TableField(
      value = "remark",
      desc = "备注"
  )
  private String remark;

  @TableField(
      value = "status",
      desc = "状态（0正常 1停用）"
  )
  private String status;

  @TableField(
      value = "update_by",
      desc = "更新者"
  )
  private String updateBy;

  @TableField(
      value = "update_time",
      desc = "更新时间"
  )
  private Date updateTime;

  @Override
  public final Class entityClass() {
    return PostEntity.class;
  }
}
